<include file="Public/header" />
    <div class="wrapper wrapper-content animated fadeInRight">

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>插件管理</h5>

                          <!--   <div class="ibox-tools">
                                <a class="collapse-link" href="{:U('menu/index')}">
                                    <i class="fa fa-chevron-up"></i>后台菜单
                                </a>
                                 <a class="collapse-link" href="{:U('menu/add')}">
                                    <i class="fa fa-plus"></i>添加菜单
                                </a>
                 
                            </div> -->

                        </div>
                        <div class="ibox-content">
                            <div class="row">
                            <?php foreach ($addons as $key => $v): ?>
                                
                            
                                <div class="file-box">
                                    <div class="file">
                                        <a href="javascript:;">
                                            <span class="corner"></span>

                                            <div class="image">
                                                <img src="{$v.logo}" class="img-responsive" alt="{$v.name}">
                                            </div>
                                            <div class="file-name">
                                                
                                            <p style="overflow:hidden;"><span class="pull-left">{$v.path}</span></span></p>
                                            <hr>
                                              <p>
                                                <a  class="btn btn-outline btn-xs btn-primary <?php if($v['status']){ echo "installed";}else{ echo "install";} ?>" table="addon" where="id-{$v.id}" from="status" to="0"  type="button"><?php if($v['status']){ echo "已安装";}else{ echo "安装";}?></a>
                                                <a  class="btn btn-outline btn-xs btn-danger" type="button">卸载</a>
                                              </p>
                                            </div>
                                        </a>

                                    </div>
                                </div>

                                <?php endforeach ?>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            
        </div>
